package javachongkao.编程基础.整数四则运算;

import java.util.Scanner;
//7-20 java基本语法-整数四则运算
// 输入2个整数，输出它们的和、差、乘积和准确的商。
//
//输入格式:
//输入两个整数
//
//输出格式:
//每一行中依次输出四则运算的结果

public class Main12 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            System.out.println(a+b);
            System.out.println(a-b);
            System.out.println(a*b);
            System.out.println((double) a/b);
        }
        scanner.close();
    }
}
